home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.lang.ref.ReferenceQueue;
- import java.lang.ref.WeakReference;
-
- class WeakHashMap$Entry<K, V> extends WeakReference<K> implements Map.Entry<K, V> {
- private V value;
- private final int hash;
- private WeakHashMap$Entry<K, V> next;
-
- WeakHashMap$Entry(K var1, V var2, ReferenceQueue<K> var3, int var4, WeakHashMap$Entry<K, V> var5) {
- super(var1, var3);
- this.value = var2;
- this.hash = var4;
- this.next = var5;
- }
-
- public K getKey() {
- return (K)WeakHashMap.access$300(this.get());
- }
-
- public V getValue() {
- return this.value;
- }
-
- public V setValue(V var1) {
- Object var2 = this.value;
- this.value = var1;
- return (V)var2;
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- Object var3 = this.getKey();
- Object var4 = var2.getKey();
- if (var3 == var4 || var3 != null && var3.equals(var4)) {
- Object var5 = this.getValue();
- Object var6 = var2.getValue();
- if (var5 == var6 || var5 != null && var5.equals(var6)) {
- return true;
- }
- }
-
- return false;
- }
- }
-
- public int hashCode() {
- Object var1 = this.getKey();
- Object var2 = this.getValue();
- return (var1 == null ? 0 : var1.hashCode()) ^ (var2 == null ? 0 : var2.hashCode());
- }
-
- public String toString() {
- return this.getKey() + "=" + this.getValue();
- }
-
- // $FF: synthetic method
- static int access$000(WeakHashMap$Entry var0) {
- return var0.hash;
- }
-
- // $FF: synthetic method
- static WeakHashMap$Entry access$100(WeakHashMap$Entry var0) {
- return var0.next;
- }
-
- // $FF: synthetic method
- static WeakHashMap$Entry access$102(WeakHashMap$Entry var0, WeakHashMap$Entry var1) {
- return var0.next = var1;
- }
-
- // $FF: synthetic method
- static Object access$202(WeakHashMap$Entry var0, Object var1) {
- return var0.value = (V)var1;
- }
-
- // $FF: synthetic method
- static Object access$200(WeakHashMap$Entry var0) {
- return var0.value;
- }
- }
-